<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">
	
function* fibs() {
	var a = 0;
	var b = 1;
	while(true) {
		yield a;
		[a, b] = [b, a + b];
	}
}

var [first, second, third, fourth, fifth, sixth] = fibs();
console.error(first);
console.error(second);
console.error(third);
console.error(fourth);
console.error(fifth);
console.error(sixth);

</script>

</body>
</html>